import request from '@/utils/request'
// 查询审批记录详细
export function getAccraditationRecordByBussniessId(bussniessId) {
  return request({
    url: '/le/accraditationRecord/byBussniessId/' + bussniessId,
    method: 'get'
  })
}
// 新增审批记录
export function addAccraditationRecordSZH(data) {
  return request({
    url: '/le/accraditationRecord/addSZH',
    method: 'post',
    data: data
  })
}
// 查询审批记录列表
export function listAccraditationRecord(query) {
  return request({
    url: '/le/accraditationRecord/list',
    method: 'get',
    params: query
  })
}

// 查询审批记录详细
export function getAccraditationRecord(id) {
  return request({
    url: '/le/accraditationRecord/' + id,
    method: 'get'
  })
}

// 新增审批记录
export function addAccraditationRecord(data) {
  return request({
    url: '/le/accraditationRecord',
    method: 'post',
    data: data
  })
}

// 退住新增审批记录
export function tuizhuaddAccraditationRecord(data) {
  return request({
    url: '/le/accraditationRecord/tuizhuadd',
    method: 'post',
    data: data
  })
}

// 修改审批记录
export function updateAccraditationRecord(data) {
  return request({
    url: '/le/accraditationRecord',
    method: 'put',
    data: data
  })
}

// 删除审批记录
export function delAccraditationRecord(id) {
  return request({
    url: '/le/accraditationRecord/' + id,
    method: 'delete'
  })
}
